package cloud.daodao.storm.common.file.model;

import cloud.daodao.storm.common.serialize.Serializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.Duration;

@Schema(title = "FileOption", description = "文件选项")
@Data
public class FileOption implements Serializer {

    @Schema(title = "mark", description = "是否添加水印，默认：是", example = "true")
    private Boolean mark = Boolean.TRUE;

    @Schema(title = "time", description = "文件保留时间，默认：永久，单位：天", example = "0")
    private Duration time = Duration.ZERO;

}
